package checkers3d.logic;

/*Brenton Dong
 *
 * This method should be accessed by no other classes but PlayingSurface3D
 * 
 */
import checkers3d.*;
import java.util.*;

public class PlayingSurfacePosition{

//This is the linked list of Board Objects that will exist in every position (square)
    LinkedList<IBoardObject> contents = new LinkedList();
    PlayingSurfacePositionOverlay overlayStatus = PlayingSurfacePositionOverlay.NONE;


//This will return the entire linked list of Board Objects in the Position (square)
    public LinkedList<IBoardObject> getPositionObjects(){
        return contents;
    }


//This will allow you to add a Board Object to the position square.
    public void addObject(IBoardObject boardObject){
        contents.addFirst(boardObject);
    }

//This will allow you to change the position's overlay status.
    public void setOverlay(PlayingSurfacePositionOverlay status){
        overlayStatus = status;
    }

    public PlayingSurfacePositionOverlay getOverlay()
    {
        return overlayStatus;
    }

}